package cn.bon.emp.controller;

import cn.bon.common.bean.JsonResult;
import cn.bon.common.tool.R;
import cn.bon.emp.api.pojo.po.EmpSkill;
import cn.bon.emp.service.IEmpSkillService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author Lc_cL
 * @Date 2023/12/21
 * @Description
 */
@Tag(name = "资质技能接口")
@RestController
@RequestMapping("/skill")
public class SkillController {
    @Resource
    IEmpSkillService skillService;

    @Operation(summary = "查询所有资质技能")
    @GetMapping("/skills")
    public JsonResult<List<EmpSkill>> skills() {
        List<EmpSkill> skills = skillService.getAll();
        return R.success(skills);
    }
}
